﻿using System.Windows;

namespace Manson.PrismWPFUIBase.Views
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            btn_Close.Click += (s, e) =>
            {
                this.Close();
            };
            btn_Min.Click += (s, e) => { this.WindowState = WindowState.Minimized; };
            btn_Max.Click += (s, e) =>
            {
                if (this.WindowState == WindowState.Maximized )
                {
                    this.WindowState = WindowState.Normal;
                }
                else
                {
                    this.WindowState= WindowState.Maximized;
                }
            };
        }

        private void Grid_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            this.DragMove();
        }
    }
}
